    /*
     * 自动验证规则设置
     * 示例:     
     * protected $_validate = array(
     *      array('username','require','用户名必须填写'),
     *      array('password','require','密码必须填写'),
     *      array('password2','require','确认密码必须填写'),
     *      array('password2','password','与密码的信息必须一致',0,'confirm'),
     *      array('user_email','email','邮箱格式不正确',2),
     *      array('user_qq','/^[1-9]\d{4,9}$/','qq格式不正确'),
     *      array('user_xueli','2,3,4,5','必须选择一个学历',0,'in'),
     *      array('user_hobby','check_hobby','爱好必须两项以上',1,'callback'),
     * );    
     */
    protected $_validate = array(
            <volist name="tableInfoArray" id="tableInfo">
                <if condition="$tableInfo['column_key'] neq 'PRI'">
                    <if condition="!(($tableInfo[$columnNameKey] eq 'add_time') AND ($tableInfo['column_type'] eq 'datetime'))">
                        <if condition="!(($tableInfo[$columnNameKey] eq 'update_time') AND ($tableInfo['column_type'] eq 'datetime'))">
                            <if condition="strpos($tableInfo['column_comment'],':') !== false"><php>$column_comment_arr=explode(':',$tableInfo[column_comment]);$column_comment=$column_comment_arr[0];</php>array('{$tableInfo[$columnNameKey]}','require','{$column_comment}必须填写'),<else/>array('{$tableInfo[$columnNameKey]}','require','{$tableInfo[column_comment]}必须填写'),</if>
                            <php>echo "\r\n\t\t\t";</php>  
                        </if>
                    </if>                  
                </if>
            </volist> 
    );